<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSourceresidenceValidate extends Validate
{


	protected $rule = [
		'building_floor_height'   => 'require',
		'building_floor_heights'   => 'require',
		'exempt_month'   => 'require|number',
		'start_month'   => 'require|number',
		'mode_detain'   => 'require',
		'mode_pay'   => 'require',
		'architecture_rent'   => 'require',
		'decorate'   => 'require',
		'room_suit'   => 'require',
		'office'   => 'require',
		'lavatory'   => 'require',
	];


	protected $message = [
		'building_floor_height.require' => '建筑层高不能为空',
		'building_floor_heights.require' => '总楼层不能为空',
		'start_month.require' => '起始租月不能为空',
		'exempt_month.require' => '免租期不能为空',
		'exempt_month.number' => '免租期只能是整数',
		'mode_detain.require' => '押金不能为空',
		'mode_pay.require' => '付几个月不能为空',
		'architecture_rent.require' => '租金不能为空',
		'decorate.require' => '装修不能为空',
		'room_suit.require' => '几室不能为空',
		'office.require' => '几厅不能为空',
		'lavatory.require' => '几个厕所不能为空',

	];

}